var express = require("express");
var router = express.Router();
const stuControl = require(process.cwd() + "/controller/stuControl");
/* GET home page. */
router.get("/", function (req, res, next) {
  res.render("index", { title: "Express" });
});
router.post("/stu", stuControl.create);
router.get("/stu", stuControl.findAll);
router.post("/addStudent", stuControl.addStudent);
router.get("/findStudents", stuControl.findStudents);
module.exports = router;
